//
//  AppConfig.h
//  安好
//
//  Created by qinlongqing on 14-9-10.
//  Copyright (c) 2014年 冯凯. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    iPhone_1G = 1,
    iPhone_3G,
    iPhone_3GS,
    iPhone_4,
    iPhone_4S,
    iPhone_5,
    iPhone_5s,
    Verizon_iPhone_4,
    Simulator,
}CurrentDeviceType;

typedef enum {
    shiLiTest,
    xinLvTest,
    seJueTest,
}TestType;

typedef enum {
    zhengChang=1,
    hongLvSeMang,
    hongSeMangAndLvSeZhengChang,
    hongSeMangAndLvSeRuo,
    lvSeMangAndHongSeZhengChang,
    lvSeMangAndHongSeRuo,
    hongSeRuoAndLvSeRuo,
    hongSeRuoAndLvSeZhengChang,
    hongSeZhengChangAndLvSeRuo,
    hongSeZhengChangAndLvSeZhengChang_level3,
    hongSeJiRuoAndLvSeJiRuo,
    hongSeJiRuoAndLvSeZhengChang,
    hongSeZhengChangAndLvSeJiRuo,
    hongSeZhengChangAndLvSeZhengChang_level4,
    houTianHongLvYiChangAndZiSeZhengChang,
    houTianHongLvZhengChangAndZiSeYiChang,
    houTianHongLvAndZiSeKeNengYiChang,
    quanSeMang,
}SeJueTestResult;

typedef enum {
    shuZiTestWay=1,
    tuXingTestWay,
    hunHeTestWay,
}TestWay;

#define kTestUserName                @"testUserName"
//视力测试相关
#define kShiLiTestLeftResult         @"leftResult"
#define kShiLiTestRightResult        @"rightResult"
//心率测试相关
#define kXinLvTestResult             @"xinLvTestResult"
//色觉测试相关
#define kSeJueTestType               @"seJueTestType"
#define kSeJueTestResult             @"seJueTestResult"

#define kHuiQuanTestDataArray        @"kHuiQuanTestDataArray"

#define kRouRenXingTestKeepedTime    @"kRouRenXingTestKeepedTime"




#define kUploadShiLiTestDataURL     @"vision/upload/"//上传视力测试结果接口

#define kUploadSeJueTestDataURL     @"vision/uploadcolor/"//上传色觉测试结果

#define kUploadXinLvTestDataURL     @"heartrate/upload/"//上传心率测试结果

#define kUploadHuiQuanTestDataURL     @"user/logadd/"//上传挥拳测试结果

#define kUploadRouRenXingTestDataURL  @"user/logadd/"//上传柔韧性测试结果

#define kGetQuanQiuBangURL          @"vision/rank/"//得到某一项测试的全球榜

#define kGetSpecifyDoctorsURL       @"question/myappoint/"//获取指定医生列表

#define kGetFollowDoctorsURL        @"user/doctorfollowing/"//获得关注医生列表

#define kGetUserInfoURL              @""//得到用户的性别、年龄、身高、体重

#define kGetJiBuPersentURL           @"pedometer/detail/"//得到当前用户所走步数在整个中得百分比
#define kUploadJiBuURL               @"pedometer/add/"//上传今天的计步数据

#define kGetSearchResultURL          @"docuser/list/"//得到医生搜索结果

#define kGetAllSubscibeURL             @"news/category/"//得到所有的订阅名字
#define kGetSubscibeListURL            @"news/list/"//得到所有的订阅列表
#define kAddOrDeleteSystemSubscibeURL  @"message/changeenjoy/"//添加或者删除系统推送的订阅
#define kAddMySelfSubscibeURL          @"news/addmycategory/"//添加自定义订阅
#define kDeleteMySelfSubscibeURL       @"news/delmycategory/"//删除自定义订阅
#define kAddCollectionURL              @"collection/addCollection/"//添加订阅收藏地址
#define kDeleteCollectionURL           @"collection/delete/"//取消订阅收藏地址

#define kAnHaoSecretaryURL             @"notification/"//安好秘书接口



#define FitToScreenEasily(view,bigRectForIOS7Above,smallRectForIOS7Above) if (iPhone5) {if (IOS7) {view.frame = bigRectForIOS7Above;}else{view.frame = CGRectMake(bigRectForIOS7Above.origin.x, bigRectForIOS7Above.origin.y - 20, bigRectForIOS7Above.size.width, bigRectForIOS7Above.size.height);}}else{if (IOS7) {view.frame = smallRectForIOS7Above;}else{view.frame = CGRectMake(smallRectForIOS7Above.origin.x, smallRectForIOS7Above.origin.y - 20, smallRectForIOS7Above.size.width, smallRectForIOS7Above.size.height);}}

// 分享设置
#define    kWeiXinShareUrl             @"http://www.niruoanhao.com/autodownload/"//微信分享的链接
#define    kWeiXinShareTitle           @"你若安好,便是晴天"//微信分享的标题
#define    kWeiXinShareText            @"安好掌上体检，等您来挑战。http://www.niruoanhao.com/download/"//微信分享的内容

#define    kWeiXinFriendShareUrl       @"http://www.niruoanhao.com/autodownload/"//微信朋友圈分享的链接
#define    kWeiXinFriendShareTitle     @"你若安好,便是晴天"//微信朋友圈分享的标题
#define    kWeiXinFriendShareText      @"安好掌上体检，等您来挑战。http://www.niruoanhao.com/download/"//微信朋友圈分享的内容

#define    kQQshareUrl                 @"http://www.niruoanhao.com/autodownload/"//qq分享链接
#define    kQQshareTitle               @"你若安好,便是晴天"//qq分享标题
#define    kQQshreDescription          @"安好掌上体检，等您来挑战。http://www.niruoanhao.com/download/"//qq分享类型

#define    kQQZoneShareUrl             @"http://www.niruoanhao.com/autodownload/"//qq空间分享的链接
#define    kQQZoneShareTitle           @"你若安好,便是晴天"//qq空间分享的标题
#define    kQQZoneShareDescription     @"安好掌上体检，等您来挑战。http://www.niruoanhao.com/download/"//qq空间分享的类型

#define    kSinaWeiboShareUrl          @"http://www.niruoanhao.com/autodownload/"//新浪微博的分享的链接
#define    kSinaWeiboShareTitle        @"你若安好,便是晴天"//新浪微博的分享的标题
#define    kSinaWeiboShareText         @"安好掌上体检，等您来挑战。http://www.niruoanhao.com/download/"//新浪微博的分享的内容





@interface AppConfig : NSObject

+ (CurrentDeviceType)currentDeviceString;

+ (CGFloat)getShiLiLevelWithWordSize:(NSInteger)currentWordSize;

+ (NSInteger)getShiLiTestScoreWithWordSize:(NSInteger)currentWordSize;

+ (NSString *)getSeJueTestResultWithType:(SeJueTestResult)seJueTestResultType;

+ (NSString *)getXinLvTestResult:(NSInteger)testResult;

+ (NSString *)getXinLvPingYuWithTestResult:(NSInteger)testResult;

+ (NSInteger)getFistTestScoreWithTestCount:(NSInteger)fistedCount;
+ (NSString *)getFistPingYuWithTestCount:(NSInteger)fistedCount;

+ (NSInteger)getSupplenessTestScoreWithTestKeepedTime:(CGFloat)fistTestResult;
+ (NSString *)getSupplenessPingYuWithTestKeepedTime:(CGFloat)fistTestResult;

//seJueTestType：
//1、正常
//2、先天性
//3、后天性
//4、全色盲
//
//seJueTestResult：
//1、正常
//2、先天性红绿色盲（Ⅰ级）
//3、先天性红色色盲（Ⅱ级）
//4、先天性红色色盲绿色色弱（Ⅱ级）"
//5、先天性绿色色盲（Ⅱ级）";
//6、先天性绿色色盲红色色弱（Ⅱ级）";
//7、先天性红绿色弱（Ⅲ级）";
//8、先天性红绿色弱（Ⅲ级）";
//9、先天性红绿色弱（Ⅲ级）";
//10、先天性色弱";
//11、先天性红绿色弱（Ⅲ级）";
//12、先天性红绿色弱（Ⅲ级）";
//13、先天性红绿色弱（Ⅲ级）";
//14、先天性色弱";
//15、后天性红绿色觉异常";
//16、后天性紫色觉异常";
//17、可能后天性色觉异常";
//18、全色盲";




@end
